Use Microsoft.AspNetCore.InternalTesting.csproj for _GetPackageVersionInfo#53152
Use Microsoft.AspNetCore.InternalTesting.csproj for _GetPackageVersionInfo#53152
Conversation
eng/Npm.Workspace.nodeproj
Outdated
| <_ResolvedPackageVersionInfo> | ||
| <PackageVersion>$(PackageVersion)</PackageVersion> | ||
| </_NodePackageNameAndVersions> | ||
| </_ResolvedPackageVersionInfo> |
There was a problem hiding this comment.
This is incorrect, isn't it?
https://github.com/dotnet/aspnetcore/pull/53152/files#diff-87ba8ac7845060f8e3f14f5fb637b6790e56ce05e5503d2b96293301339d3910L38
returns the correct item group.
There was a problem hiding this comment.
The other part is that this doesn't need to match <Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionInfo" /> The TargetOuput here is provided in the Returns, ItemName is only where in the calling context the output needs to be placed, but they both don't have to match.
There was a problem hiding this comment.
Alright, then we must just not be setting PackageVersion in the node project anymore. There's no strong reason to use that project as far as I know, I'll try using dotnet-user-jwts.
I was keeping the structure as close as possible to what was there. I don't feel strongly about it either way. The previous code was grabbing the version from the functional test project directly, which was a bit random. I don't know exactly what the version info is being used for, so I just made sure we captured all the versions. In reality we version all the packages simultaneously. In my view, if we are generating some sort of manifest, we should include the versions for all packages that we ship, just in case we break something and produce the wrong version. |
The comment below isn't entirely accurate: The target in which we call |
Seems that we can rip the entire thing in that case. |
|
Test build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2345984&view=results
Agreed - #53153 |
There's no need to use a node project to calculate the nonstable package version of the repo during publishing - use
Microsoft.AspNetCore.InternalTesting.csprojinstead.Related - #53091. @javiercn, is the commented-out portion of the target going to be used anywhere other than in publishing.props? If so we should separate that out into a separate target & name it something else.